package com.nuoniu.sibanyun.service.cm.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.controller.cm.CmContractChange;
import com.nuoniu.sibanyun.mapper.cm.CmContractChangeMapper;
import com.nuoniu.sibanyun.service.cm.ICmContractChangeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 合同变更记录 服务实现类
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-22
 */
@Service
public class CmContractChangeServiceImpl extends ServiceImpl<CmContractChangeMapper, CmContractChange> implements ICmContractChangeService {

    @Override
    public List<CmContractChange> getByContract(Long cId) {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("contract_id", cId);
        return list(wrapper);
    }
}
